FROM mysql:5.7.41
ADD ./nacos/mysql-schema.sql /docker-entrypoint-initdb.d/nacos-mysql.sql
ADD ./canal/mysql-create.sql /docker-entrypoint-initdb.d/canal-mysql.sql
ADD ./dtm/mysql-schema.sql /docker-entrypoint-initdb.d/dtm-mysql.sql
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/nacos-mysql.sql
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/canal-mysql.sql
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/dtm-mysql.sql
EXPOSE 3306
CMD ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]